package com.iflytek.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import com.iflytek.entity.TrainClass;
import com.iflytek.service.ITrainClassService;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 周超
 * @since 2025-05-29
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/trainClass")
public class TrainClassController {
    private final ITrainClassService trainClassService;

    @GetMapping("/list")
    public List<TrainClass> list() {
        return trainClassService.list();
    }
}
